package com.hmall.common.clients;

import com.hmall.common.dto.Address;
import com.hmall.common.dto.User;
import com.hmall.common.vo.ItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("userservice")
public interface UserClient {
    @GetMapping(value ="/address/{id}",produces = "application/json;charset=utf-8")
    Address findAddressById(@PathVariable("id") Long id);
    @GetMapping(value = "/user/{id}",produces = "application/json;charset=utf-8")
    User findById(@PathVariable Long id);
}
